import request from '@/utils/request'

// 拣货方案列表
export function getListAPI(params) {
  return request({
    url: '/storage/picking-scheme/list',
    method: 'GET',
    params
  })
}

// 策略信息列表
export function getStrListAPI(data) {
  return request({
    url: '/storage/strategy-message/list',
    method: 'GET',
    data
  })
}

// 拣货策略分页列表
export function getStrPagingListAPI(data) {
  return request({
    url: '/storage/picking-scheme-strategy/list/' + data,
    method: 'GET'
  })
}

// 关联信息分页列表
export function getPickingSchemeAPI(data) {
  return request({
    url: '/storage/picking-scheme-relation/list/' + data,
    method: 'GET'
  })
}

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/storage/picking-scheme/add',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/storage/picking-scheme/update',
    method: 'POST',
    data
  })
}

// 删除
export function DelDataAPI(data) {
  return request({
    url: '/storage/picking-scheme/delete/' + data,
    method: 'DELETE'
  })
}

// 关联
export function RelationAPI(data) {
  return request({
    url: '/storage/picking-scheme/relation',
    method: 'POST',
    data
  })
}

// 解绑
export function UnbindingAPI(data) {
  return request({
    url: '/storage/picking-scheme/relieve/' + data,
    method: 'GET'
  })
}

// 查看
export function SeeDataAPI(data) {
  return request({
    url: '/storage/picking-scheme/view/' + data,
    method: 'GET'
  })
}
